<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>啥也没有 我就试试</title>

    </head>
    <body>
       <h1>仿playGround</h1>

       <?php 

        use mikehaertl\wkhtmlto\Pdf;
        use wkhtmlto ;

        print_r("wkhtmltopdf.exe 的安装位置是 E:\work\pycharm\\");
        print_r("本次要转换的页面是 https://kinwork.jp/");
        print_r("转换结果文件名 out_put.pdf  生成位置是 E:\work\pycharm\\");

        $pdf = new Pdf();

// On some systems you may have to set the path to the wkhtmltopdf executable
// $pdf->binary = 'C:\...';

        if (!$pdf->saveAs('/path/to/page.pdf')) {
            $error = $pdf->getError();
        // ... handle error here
        }

        shell_exec("E:\work\pycharm\wkhtmltopdf.exe E:\work\pycharm\doSearch.html E:\work\pycharm\out_put.pdf");



       print_r("转换结束over");
	   
// 	   $url = "https://kinwork.jp";
// $out_put = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."changedPdf".DIRECTORY_SEPARATOR."aaa.pdf";


       ?>
    </body>
</html>
